package com.lcb.blog.base;


/****
 * @Author:lcb
 * @Description:业务层接口
 * @Date: 2020/8/18 16:58
 *****/
public interface Constants {
    // 响应请求成功
    String HTTP_RES_CODE_200_VALUE = "success";
    // 系统错误
    String HTTP_RES_CODE_500_VALUE = "fial";
    // 响应请求成功code
    Integer HTTP_RES_CODE_200 = 200;
    // 系统错误
    Integer HTTP_RES_CODE_500 = 500;
    // 未关联QQ账号
    Integer HTTP_RES_CODE_201 = 201;

    // 熔断降级
    Integer HTTP_RES_CODE_205 = 205;
    // 发送邮件
    String MSG_EMAIL = "email";
    // 会员token
    String TOKEN_MEMBER = "TOKEN_MEMBER";
    // 用户有效期 90天
    Long TOKEN_MEMBER_TIME = (long) (60 * 60 * 24 * 90);
    int COOKIE_TOKEN_MEMBER_TIME = (60 * 60 * 24 * 90);
    // cookie 会员 totoken 名称
    String COOKIE_MEMBER_TOKEN = "cookie_member_token";
    // 微信注册码存放rediskey
    String WEIXINCODE_KEY = "weixin.code";
    // 微信注册码有效期30分钟
    Long WEIXINCODE_TIMEOUT = 1800l;

    // 用户信息不存在
    Integer HTTP_RES_CODE_EXISTMOBILE_203 = 203;

    // token
    String MEMBER_TOKEN_KEYPREFIX = "media.login";

    // 安卓的登陆类型
    String MEMBER_LOGIN_TYPE_ANDROID = "Android";
    // IOS的登陆类型
    String MEMBER_LOGIN_TYPE_IOS = "IOS";

    // PC的登陆类型
    String MEMBER_LOGIN_TYPE_PC = "PC";

    // 登陆超时时间 有效期 90天
    Long MEMBRE_LOGIN_TOKEN_TIME = 77776000L;

    Integer MEDIA_FORMAT_VEDIO = 100;
    Integer MEDIA_FORMAT_AUDIO = 200;
    Integer MEDIA_FORMAT_IMAGE = 300;
    Integer MEDIA_FORMAT_DOC = 400;
    Integer MEDIA_FORMAT_SEGMENT = 500;
    Integer MEDIA_FORMAT_SCENES = 600;
    Integer MEDIA_FORMAT_SHOT = 700;
    Integer MEDIA_FORMAT_FOLDER = 800;


}
